package com.project.restaurant.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.time.LocalTime;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* <p>
*
* </p>
*
* @author 作者
* @since 2022-10-11
*/
@Getter
@Setter
@Accessors(chain = true)
public class Restaurant extends Model<Restaurant> {

private static final long serialVersionUID = 1L;

  /**
  * 餐饮厅id
  */
  @TableId(value = "restaurant_id", type = IdType.ASSIGN_ID)
  private Integer restaurantId;

  /**
  * 餐饮厅名
  */
  private String restaurantName;

  /**
  * 餐饮厅地区
  */
  private String restaurantArea;

  /**
  * 餐饮厅详细地址
  */
  private String restaurantAddress;

  /**
  * 餐饮厅的营业开始时间
  */
  private LocalTime openBusinessHours;

  /**
  * 餐饮厅的营业结束时间
  */
  private LocalTime closeBusinessHours;

  /**
  * 联系电话
  */
  private String restaurantPhone;

  /**
  * 公告
  */
  private String announcement;

  /**
  * 营业状态（0：休业中、1：营业中）
  */
  private Integer restaurantState;


  @Override
  public Serializable pkVal() {
    return this.restaurantId;
  }

}
